<?php
$ds = DIRECTORY_SEPARATOR;

$root_path = dirname(dirname(dirname(dirname(__FILE__)))); //from directory Library to e-shop to demos to root
$include_paths = array(
    realpath("$root_path{$ds}library") // SmartL
	//Add here path to Zend Framework (required),  and optionally Doctrine and Nette framework
);

set_include_path( implode(PATH_SEPARATOR, $include_paths) . PATH_SEPARATOR . get_include_path());